﻿using Inovout.Gui.Wpf.ViewModels;
using Inovout.Business;

namespace Inovout.Gui.Wpf.Commands
{
    internal class DomainViewModelFunctionKey
    {
        private DomainViewModel domainViewModel;
        private Function function;
        internal DomainViewModelFunctionKey(DomainViewModel domainViewModel, Function function)
        {
            this.domainViewModel = domainViewModel;
            this.function = function;
        }
        public override bool Equals(object obj)
        {
            DomainViewModelFunctionKey that = obj as DomainViewModelFunctionKey;
            return that != null & this.domainViewModel.Equals(that.domainViewModel) & this.function.Equals(that.function);
        }
        public override int GetHashCode()
        {
            return this.domainViewModel.GetHashCode() ^ this.function.GetHashCode();

        }
    }
}
